<?php

namespace App\Ant;

use App\Models\User;

trait WithAuthor
{
    public function author()
    {
        return $this->hasOne(User::class, 'id', 'author_id');
    }
}